package com.firewolf.log.core;

import java.util.Arrays;

/**
 * 作者：刘兴
 * 时间:19/2/20
 **/
public class Log {
    private String operate; //操作，比喻：用户登录

    private String method; //执行的方法

    private Object[] args; //执行方法传递的参数

    private long time;//方法执行消耗的时间，毫秒

    private String username; //当前操作人的用户名

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Log{" +
                "operate='" + operate + '\'' +
                ", method='" + method + '\'' +
                ", args=" + Arrays.toString(args) +
                ", time=" + time +
                ", username='" + username + '\'' +
                '}';
    }
}
